package org.oop1.jicheng;

public class Demo2 {
	private String name;
	private int age;
	private String sex;
	//定义了私有属性--------------同时也定义了公共方法来访问私有属性并对其进行赋值操作
	public void setName(String name){
		this.name=name;
	}
	public String getName(){
		return name;
	}
}
